import { Component, OnInit } from '@angular/core';

declare var form: any;

@Component({
  templateUrl: './check.config.component.html'
})
export class CheckConfigComponent implements OnInit {

  fs: any = null;
  sideDic: any = null;
  // 字典
  typeDic: any = null;

  constructor() {
    this.fs = new form.FormSideSimpleService('checkconfig', {
      orderObject: { order: 0 },
      keyField: 'id',
      randomFields: ['id'],
      foreignKey: 'checkType'
    });

    this.sideDic = new form.DictionaryService('d_check_type');
    this.sideDic.loadAll();

    this.typeDic = new form.DictionaryService('d_checktype');
  }

  ngOnInit(): void {
  }
}
